var user = getUserInfo();

if(!user){
    window.confirm("没有登录, 不允许进来");
}

var vue = new Vue({
    el:"#app",
    data:{
        owner:{},
        visitors:[
            {id:"5f1c1a1e43190000f60034c2", nickname:"lyf", headImgUrl: "/images/test/personal/lyf.jpg"},
            {id:"5f1c1a1e43190000f60034c3", nickname:"qsz", headImgUrl: "/images/test/personal/qsz.jpg"},
            {id:"5f1c1a1e43190000f60034c4", nickname:"zhy", headImgUrl: "/images/test/personal/zhy.jpg"}
            ],
        allView:{},
        todayView:{}
    },
    methods:{

    },
    filters:{

    },
    mounted:function () {
        var param = getParams();
        var ownerId = param.ownerId; //窝的拥有者id

        //获取统计数据
        ajaxGet("/users/userAccess",{id:ownerId}, function (data) {
            var map = data.data;
            vue.allView = map.allView;
            vue.todayView = map.todayView;
        })

    }
});

